#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
void print(int arr[], int sz)
{
	int i = 0;
	for (i = 0; i < sz; i++)
	{
		printf("%d ", arr[i]);
	}
}
void reverse(int arr[], int sz)
{
	int t = 0;
	int i = 0;
	for (i = 0; i <= 4; i++)
	{
		t = arr[i];
		arr[i] = arr[9 - i];
		arr[9 - i] = t;
	}
}
int main()
{
	int arr[10] = { 0 };
	int i = 0;
	for (i = 0; i < 10; i++)
	{
		scanf("%d ", &arr[i]);
	}
	int sz = sizeof(arr) / sizeof(arr[0]);
	reverse(arr,sz);
	print(arr, sz);
	return 0;
}